package com.gudy.counter.service;

import com.gudy.counter.bean.Account;
import com.gudy.counter.bean.CounterRes;
import org.springframework.stereotype.Service;


public interface AccountSerivce {
    //login登录.catcha验证码，captchaID验证码id
    Account login(long uid,String password,String captcha,String captchaId) throws Exception;
    //缓存是否存在
    boolean checkAccountExisInCache(String token);
    //退出登录
    boolean logout(String token);
    //修改密码
    CounterRes updatePassword(long uid,String oldPassword,String newPassword);
}
